.class public Lcom/facebook/orca/server/OrcaService;
.super Lroboguice/service/RoboService;
.source "OrcaService.java"


# instance fields
.field private c:Lroboguice/inject/ContextScope;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private d:Lcom/facebook/orca/protocol/WebServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private e:Lcom/facebook/orca/cache/CacheServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private f:Lcom/facebook/orca/location/LocationServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private g:Lcom/facebook/orca/server/PreProcessingServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private h:Lcom/facebook/orca/images/ImageSearchHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private i:Lcom/facebook/orca/database/DbServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private j:Lcom/facebook/orca/users/AddressBookServiceHandler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private k:Ljava/util/List;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/facebook/orca/server/OrcaServiceQueueHook;",
            ">;"
        }
    .end annotation
.end field

.field private l:Ljava/util/List;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/facebook/orca/server/OrcaServiceHook;",
            ">;"
        }
    .end annotation
.end field

.field private final m:Ljava/util/concurrent/atomic/AtomicLong;

.field private final n:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/facebook/orca/server/OrcaServiceQueue;",
            ">;"
        }
    .end annotation
.end field

.field private o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

.field private p:Lcom/facebook/orca/server/OrcaServiceQueue;

.field private q:Lcom/facebook/orca/server/OrcaServiceQueue;

.field private r:Lcom/facebook/orca/server/OrcaServiceQueue;

.field private s:Lcom/facebook/orca/server/OrcaServiceQueue;

.field private t:Lcom/facebook/orca/server/OrcaServiceQueue;

.field private u:Lcom/facebook/orca/server/OrcaServiceQueue;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    .line 31
    invoke-direct {p0}, Lroboguice/service/RoboService;-><init>()V

    .line 56
    new-instance v0, Ljava/util/concurrent/atomic/AtomicLong;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-direct {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->m:Ljava/util/concurrent/atomic/AtomicLong;

    .line 58
    invoke-static {}, Lcom/google/common/collect/Lists;->a()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    .line 231
    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/server/OrcaService;Ljava/lang/String;Landroid/os/Bundle;)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/server/OrcaService;->a(Ljava/lang/String;Landroid/os/Bundle;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Ljava/lang/String;Landroid/os/Bundle;)Ljava/lang/String;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 154
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->m:Ljava/util/concurrent/atomic/AtomicLong;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    .line 155
    new-instance v1, Lcom/facebook/orca/server/Operation;

    invoke-direct {v1, v0, p1, p2}, Lcom/facebook/orca/server/Operation;-><init>(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V

    .line 156
    const-string v2, "get_device_location"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 157
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->q:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    .line 171
    :goto_0
    return-object v0

    .line 158
    :cond_0
    const-string v2, "sync_address_book"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 159
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->r:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    goto :goto_0

    .line 160
    :cond_1
    const-string v2, "register_push"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 161
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->s:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    goto :goto_0

    .line 162
    :cond_2
    const-string v2, "image_search"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 163
    invoke-direct {p0}, Lcom/facebook/orca/server/OrcaService;->b()V

    .line 164
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->t:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    goto :goto_0

    .line 165
    :cond_3
    const-string v2, "pushed_message"

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 166
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->u:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    goto :goto_0

    .line 169
    :cond_4
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->p:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Lcom/facebook/orca/server/Operation;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/server/OrcaService;Ljava/lang/String;Lcom/facebook/orca/server/ICompletionHandler;)Z
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/server/OrcaService;->a(Ljava/lang/String;Lcom/facebook/orca/server/ICompletionHandler;)Z

    move-result v0

    return v0
.end method

.method private a(Ljava/lang/String;Lcom/facebook/orca/server/ICompletionHandler;)Z
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 185
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 186
    invoke-virtual {p0, p1, p2}, Lcom/facebook/orca/server/OrcaServiceQueue;->a(Ljava/lang/String;Lcom/facebook/orca/server/ICompletionHandler;)Z

    move-result v1

    .line 187
    if-eqz v1, :cond_0

    .line 188
    const/4 v0, 0x1

    .line 192
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private b()V
    .locals 6

    .prologue
    .line 175
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->t:Lcom/facebook/orca/server/OrcaServiceQueue;

    if-nez v0, :cond_0

    .line 176
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "ImageSearches"

    iget-object v4, p0, Lcom/facebook/orca/server/OrcaService;->h:Lcom/facebook/orca/images/ImageSearchHandler;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->t:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 180
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->t:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 181
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->t:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-virtual {v0}, Lcom/facebook/orca/server/OrcaServiceQueue;->a()V

    .line 183
    :cond_0
    return-void
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1
    .parameter

    .prologue
    .line 139
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    return-object v0
.end method

.method public onCreate()V
    .locals 13

    .prologue
    const/4 v12, 0x0

    .line 71
    invoke-super {p0}, Lroboguice/service/RoboService;->onCreate()V

    .line 72
    new-instance v0, Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    invoke-direct {v0, p0}, Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;-><init>(Lcom/facebook/orca/server/OrcaService;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    .line 75
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->g:Lcom/facebook/orca/server/PreProcessingServiceHandler;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/PreProcessingServiceHandler;->a(Lcom/facebook/orca/server/IOrcaService$Stub;)V

    .line 78
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "Threads"

    new-instance v4, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->g:Lcom/facebook/orca/server/PreProcessingServiceHandler;

    new-instance v5, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v6, p0, Lcom/facebook/orca/server/OrcaService;->e:Lcom/facebook/orca/cache/CacheServiceHandler;

    new-instance v7, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v8, p0, Lcom/facebook/orca/server/OrcaService;->i:Lcom/facebook/orca/database/DbServiceHandler;

    new-instance v9, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v10, p0, Lcom/facebook/orca/server/OrcaService;->d:Lcom/facebook/orca/protocol/WebServiceHandler;

    new-instance v11, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;

    invoke-direct {v11, v12}, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;-><init>(Lcom/facebook/orca/server/OrcaService$1;)V

    invoke-direct {v9, v10, v11}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v7, v8, v9}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v5, v6, v7}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v4, v1, v5}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    iget-object v5, p0, Lcom/facebook/orca/server/OrcaService;->k:Ljava/util/List;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->p:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 85
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->p:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 88
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "Pushes"

    new-instance v4, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->g:Lcom/facebook/orca/server/PreProcessingServiceHandler;

    new-instance v5, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v6, p0, Lcom/facebook/orca/server/OrcaService;->e:Lcom/facebook/orca/cache/CacheServiceHandler;

    new-instance v7, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v8, p0, Lcom/facebook/orca/server/OrcaService;->i:Lcom/facebook/orca/database/DbServiceHandler;

    new-instance v9, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v10, p0, Lcom/facebook/orca/server/OrcaService;->d:Lcom/facebook/orca/protocol/WebServiceHandler;

    new-instance v11, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;

    invoke-direct {v11, v12}, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;-><init>(Lcom/facebook/orca/server/OrcaService$1;)V

    invoke-direct {v9, v10, v11}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v7, v8, v9}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v5, v6, v7}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-direct {v4, v1, v5}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    iget-object v5, p0, Lcom/facebook/orca/server/OrcaService;->k:Ljava/util/List;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->u:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 95
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->u:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 98
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "Location"

    iget-object v4, p0, Lcom/facebook/orca/server/OrcaService;->f:Lcom/facebook/orca/location/LocationServiceHandler;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->q:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 101
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->q:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 104
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "AddressBook"

    iget-object v4, p0, Lcom/facebook/orca/server/OrcaService;->j:Lcom/facebook/orca/users/AddressBookServiceHandler;

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->r:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 107
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->r:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 110
    new-instance v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->c:Lroboguice/inject/ContextScope;

    const-string v3, "Registration"

    new-instance v4, Lcom/facebook/orca/server/OrcaService$FilterChainLink;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->d:Lcom/facebook/orca/protocol/WebServiceHandler;

    new-instance v5, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;

    invoke-direct {v5, v12}, Lcom/facebook/orca/server/OrcaService$TerminatingHandler;-><init>(Lcom/facebook/orca/server/OrcaService$1;)V

    invoke-direct {v4, v1, v5}, Lcom/facebook/orca/server/OrcaService$FilterChainLink;-><init>(Lcom/facebook/orca/server/OrcaServiceHandler$Filter;Lcom/facebook/orca/server/OrcaServiceHandler;)V

    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/OrcaServiceQueue;-><init>(Landroid/content/Context;Lroboguice/inject/ContextScope;Ljava/lang/String;Lcom/facebook/orca/server/OrcaServiceHandler;Ljava/util/List;)V

    iput-object v0, p0, Lcom/facebook/orca/server/OrcaService;->s:Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 114
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    iget-object v1, p0, Lcom/facebook/orca/server/OrcaService;->s:Lcom/facebook/orca/server/OrcaServiceQueue;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 117
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 118
    invoke-virtual {v0}, Lcom/facebook/orca/server/OrcaServiceQueue;->a()V

    goto :goto_0

    .line 121
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/OrcaServiceHook;

    .line 122
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    invoke-interface {v0, v2}, Lcom/facebook/orca/server/OrcaServiceHook;->a(Lcom/facebook/orca/server/IOrcaService$Stub;)V

    goto :goto_1

    .line 124
    :cond_1
    return-void
.end method

.method public onDestroy()V
    .locals 3

    .prologue
    .line 128
    invoke-super {p0}, Lroboguice/service/RoboService;->onDestroy()V

    .line 129
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->n:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/OrcaServiceQueue;

    .line 130
    invoke-virtual {v0}, Lcom/facebook/orca/server/OrcaServiceQueue;->b()V

    goto :goto_0

    .line 132
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/server/OrcaService;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/OrcaServiceHook;

    .line 133
    iget-object v2, p0, Lcom/facebook/orca/server/OrcaService;->o:Lcom/facebook/orca/server/OrcaService$OrcaServiceStub;

    invoke-interface {v0, v2}, Lcom/facebook/orca/server/OrcaServiceHook;->b(Lcom/facebook/orca/server/IOrcaService$Stub;)V

    goto :goto_1

    .line 135
    :cond_1
    return-void
.end method

.method public onRebind(Landroid/content/Intent;)V
    .locals 0
    .parameter

    .prologue
    .line 150
    invoke-super {p0, p1}, Lroboguice/service/RoboService;->onRebind(Landroid/content/Intent;)V

    .line 151
    return-void
.end method

.method public onUnbind(Landroid/content/Intent;)Z
    .locals 1
    .parameter

    .prologue
    .line 144
    invoke-super {p0, p1}, Lroboguice/service/RoboService;->onUnbind(Landroid/content/Intent;)Z

    .line 145
    const/4 v0, 0x1

    return v0
.end method
